package com.zw.yzk.kabu.data.network.task;

import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by zhanwei on 2017/1/16.
 */

public class PublishCosTask extends Task {
    @Expose
    @SerializedName("cosplay_detail")
    public List<Item> cosList;
    @Expose
    @SerializedName("address")
    public String address;
    @Expose
    @SerializedName("top_content")
    public String topContent;
    @Expose
    @SerializedName("topic_list")
    public List<String> topicList;
    @Expose
    @SerializedName("at_list")
    public List<String> nickNames;

    public String token;

    public PublishCosTask(List<Item> cosList, List<String> topicList, List<String> nickNames, String address, String topContent, String token) {
        this.cosList = cosList;
        this.topicList = topicList;
        this.nickNames = nickNames;
        if(this.topicList == null) {
            this.topicList = new ArrayList<>();
        }
        this.address = address;
        this.topContent = topContent;
        this.token = token;
    }

    public static class Item {
        @Expose
        @SerializedName("content")
        public String text;
        @Expose
        @SerializedName("image_url")
        public String imageUrl;
    }

}
